package com.kly.sc.api.application.service.demo;

public class ChatDataDto {


    private String toUsrCode;

    /**
     * 发送的消息数量
     */
    private Integer chatAccount;


    //0就是没有阶段 1 破冰 2 有效 3 深度
    private Integer chatStage;

    public Integer getChatStage() {

        //判断下
        if(chatAccount==0){
            return  0;
        }

        if(chatAccount<2){
            return  1;
        }

        if(chatAccount<6){
            return 2;
        }

        if(chatAccount<31){
            return 3;
        }

        return 4;
    }

    public ChatDataDto setChatStage(Integer chatStage) {
        this.chatStage = chatStage;
        return this;
    }

    public ChatDataDto() {
    }



    public String getToUsrCode() {
        return toUsrCode;
    }

    public ChatDataDto setToUsrCode(String toUsrCode) {
        this.toUsrCode = toUsrCode;
        return this;
    }

    public Integer getChatAccount() {
        return chatAccount;
    }

    public ChatDataDto setChatAccount(Integer chatAccount) {
        this.chatAccount = chatAccount;
        return this;
    }
}
